package cn.example.zjgsu.dao;

import cn.example.zjgsu.pojo.Collection;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CollectionMapper {
    int insert(Collection record);

    List<Collection> selectAll();

    List<Collection> selectByUserId(String userId);

    void deleteByCollection(Collection record);
}